/* ==================================================================   
 * Created [2009-4-27 下午11:32:55] by Jon.King 
 * ==================================================================  
 * TSS 
 * ================================================================== 
 * mailTo:jinpujun@hotmail.com
 * Copyright (c) Jon.King, 2009-2012 
 * ================================================================== 
*/

package com.jinhe.tss.core.cachepool.extend.assignment;

import com.jinhe.tss.core.util.BeanUtil;


/** 
 * <p> AssignmentFactory.java </p> 
 * 
 * 任务工厂类
 * 
 * @author Jon.King 2007-1-9
 */
public class AssignmentFactory {
    private static AssignmentFactory factory = null;
    
    private AssignmentFactory(){
    }
    
    public static AssignmentFactory getInstance(){
        if(factory == null){
            factory = new AssignmentFactory();
        }
        return factory;
    }

    public IAssignment create(String className) {
        return (IAssignment)BeanUtil.newInstanceByName(className);     
    }
}

